<div class="alert clear text-center alert-warning"><p>每个ip针对每个比赛只能投出神圣的一票</p><p>点击图片可查看图片大图</p></div>
<?php
        echo '<div class="clear"><div class="panel panel-default">
             <div class="panel-body">';
        echo '<a class="fancybox" rel="group" href="'. base_url() . 'uploads/' . $query['filename'] . '"><img class="img-rounded thumb" src="'. base_url() . 'uploads/' . $query['filename'] . '" /></a>';
        echo '<div class="main-inform">';
        echo '作品名：' . $query['title'] . '<br/>';
        echo '参赛者：' . $query['realname'] . '<br/>';
        echo '所属学院：' .$query['name'] . '<br/>';
        echo '参赛项目：' .$query['category']. '<br/>';
        echo '介绍：';
        echo '<blockquote>'.$query['content'].'</blockquote>';
        echo $query['deadline'] - now() > 0 ?'剩余时间: '. timespan(now(), $query['deadline']) : '';
        echo '<br/>';
        echo $query['deadline'] - now() > 0 ?'<button type="button" data-toggle="modal" data-target="#Poll'.$query['pid'].'" class="btn btn-default btn-lg"><span class="glyphicon glyphicon-thumbs-up"></span> 顶一个！（目前：'.$polls.'）</button>' : '<button type="button"'.$query['pid'].'" class="btn btn-default btn-lg " disabled="disabled"><span class="glyphicon glyphicon-thumbs-up"></span> 已结束（目前：'.$polls.'）</button>';
        ?>
        <div class="modal fade" id="Poll<?php echo $query['pid'] ?>" tabindex="-1" role="dialog" aria-labelledby="Poll<?php echo $query['pid'] ?>" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title" id="Poll<?php echo $query['pid'] ?>">要顶他咯？</h4>
                    </div>
                    <div class="modal-body">
                        <p>每个IP每个比赛只能投出神圣的一票，票数不可逆，你确定要给他一票吗</p>
                        <?php
                        echo '<div class="panel panel-default">';
                        echo '    <div class="panel-body">';
                        echo '<img class="img-rounded thumb" src="'. base_url() . 'uploads/' . $query['filename'] . '" />';
                        echo '<div class="main-inform">';
                        echo '作品名：' . $query['title'] . '<br/>';
                        echo '作者：' .$query['realname'] . '<br/>';
                        echo '所属学院：' .$query['name'] . '<br/>';
                        echo '参赛项目：' .$query['category']. '<br/>';
                        echo '介绍：';
                        echo '<blockquote>'.$query['content'].'</blockquote>';
                        echo '</div>';
                        echo '</div>';
                        echo '</div>';
                        ?>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                        <?php     echo '<a href="'.base_url().'support?pid='.$query['pid'].'&id='.$query['id'].'"><button type="button" class="btn btn-default"><span class="glyphicon glyphicon-thumbs-up"></span> 顶一个！</button></a>' . '<br/>'; ?>
                    </div>
                </div><!-- /.modal-content -->
            </div><!-- /.modal-dialog -->
        </div><!-- /.modal -->
        <?php
        echo '</div>';
        echo '</div></div></div>';
?>
<button type="button" onclick="javascript:history.go(-1)" class="btn btn-default btn-lg btn-block">返回上一页</button>